<script type="text/javascript" language="javascript" src="../../ui/js/shouye.js"></script>
<div id="news_management_title" title="shouye" class="content_title" name="<?php echo $column[0]['p_id'] ?>">新闻管理</div>

<div class="shouye_news_title" name="<?php echo $column[0]['id'] ?>"><?php echo $column[0]['column'] ?></div>
<div class="shouye_news_content">
	<div class="contnet_list">
    	<ul>
        	<?php
            	foreach( $newthings as $item ) {
                	echo "<li name='".$item['id']."'>".$item['datetime']." ".$item['title']."</li>";
            	}
            ?>
        </ul>
    </div>
    <div class="button_box">
        <div id="add_news" class="add_shouye_news">添加</div>
        <div id="upload_news" class="add_shouye_news">上传图片</div>
    </div>
</div>



<div class="shouye_show_title" name="<?php echo $column[1]['id'] ?>"><?php echo $column[1]['column'] ?></div>
<div class="shouye_show_content">
	<div class="contnet_list">
    	<ul>
        	<?php
            	foreach( $show as $item ) {
                	echo "<li name='".$item['id']."'>".$item['datetime']." ".$item['title']."</li>";
            	}
            ?>
        </ul>
    </div>
    <div class="button_box">
        <div id="add_show" class="add_shouye_news">添加</div>
        <div id="upload_show_type1" class="add_shouye_news">上传图片type1</div>
        <div id="upload_show_type2" class="add_shouye_news">上传图片type2</div>
        <div id="upload_show_type3" class="add_shouye_news">上传图片type3</div>
    </div>
</div>



<div class="shouye_enjoy_title" name="<?php echo $column[2]['id'] ?>"><?php echo $column[2]['column'] ?></div>
<div class="shouye_enjoy_content">
	<div class="contnet_list">
    	<ul>
        	<?php
            	foreach( $enjoy as $item ) {
                	echo "<li name='".$item['id']."'>".$item['datetime']." ".$item['title']."</li>";
            	}
            ?>
        </ul>
    </div>
    <div class="button_box">
        <div id="add_enjoy" class="add_shouye_news">添加</div>
        <div id="upload_enjoy" class="add_shouye_news">上传图片</div>
    </div>
</div>



<div id="news" class="edit_news">
    <form>
        <input type="hidden" name="p_id" value="" />
        <input type="hidden" name="id" value="" />
        标题：<input type="text" name="title" maxlength="20" /><br />
        种类：<input type="text" name="type" maxlength="20" /><br />
        作者：<input type="text" name="author" maxlength="10" /><br />
        时间：<input type="datetime" name="datetime" value="" /><br />
        配图：<input type="text" name="image"  /><input type="button" name="select_img" value="选择图片"/><br />
        内容：<br />
        <textarea name="content"></textarea><br />
        <input class="news_sub" type="button" value="提交" />
        <input class="news_del" type="button" value="删除" />
        <input class="news_cancel" type="button" value="取消" />
    </form>
</div>

<div id="upload_img" class="edit_news">
    <form enctype="multipart/form-data" action="upload" method="post">  
        上传图片到<span class="upload_title"></span>：
        <input type="file" name="fileToUpload" id="fileToUpload" />
        <input type="hidden" name="width" value="" />
        <input type="hidden" name="height" value="" />
        <input type="hidden" name="type" value="0" />
        <input type="hidden" name="p_id" value="" />
        <input type="submit" name="img_sub" value="上传" />
        <input class="news_cancel" type="button" value="取消" />
    </form>
</div>
<div class="select_img" >
    <div class="img_list"></div>
    <input type='button' class='img_cancel' value='取消' />
</div>